package com.liangwj.springbootdesignpatterns.createTypePatterns.factoryMethod.demo;
/**
 * <b>Description:</b> 生产奔驰车辆E260的具体生产类 <br/>
 * @author Lingwenjun
 * @date 2019/1/21-18:01
 * @version 1.0
 */
public class BenzE260 implements Benz {

    public BenzE260() {
        carColor();
        carSpeed();
        carPrice();
    }
    @Override
    public void carColor() {
        System.out.println("BenzE260的颜色是: 蓝红色");
    }

    @Override
    public void carSpeed() {
        System.out.println("BenzE260的速度是: 150 km/h");
    }

    @Override
    public void carPrice() {
        System.out.println("BenzE260的价格是: 150万");
    }
}
